package com.project.shtp.pojo.web.vo;

import java.util.Arrays;
import java.util.Date;

public class HistoryBrowse {
    private Date browseTime;
    private Integer goodsId;
    private String goodsTitle;
    private byte[] goodsImage;

    //base64编码读取图片
    private String goodsImage64;

    public String getGoodsImage64() {
        return goodsImage64;
    }

    public void setGoodsImage64(String goodsImage64) {
        this.goodsImage64 = goodsImage64;
    }

    public HistoryBrowse() {
    }

    public HistoryBrowse(Date browseTime, Integer goodsId, String goodsTitle, byte[] goodsImage) {
        this.browseTime = browseTime;
        this.goodsId = goodsId;
        this.goodsTitle = goodsTitle;
        this.goodsImage = goodsImage;
    }

    public Date getBrowseTime() {
        return browseTime;
    }

    public void setBrowseTime(Date browseTime) {
        this.browseTime = browseTime;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsTitle() {
        return goodsTitle;
    }

    public void setGoodsTitle(String goodsTitle) {
        this.goodsTitle = goodsTitle;
    }

    public byte[] getGoodsImage() {
        return goodsImage;
    }

    public void setGoodsImage(byte[] goodsImage) {
        this.goodsImage = goodsImage;
    }

    @Override
    public String toString() {
        return "HistoryBrowse{" +
                "browseTime=" + browseTime +
                ", goodsId=" + goodsId +
                ", goodsTitle='" + goodsTitle + '\'' +
                ", goodsImage=" + Arrays.toString(goodsImage) +
                '}';
    }
}
